package com.practice.share.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "`comment_message`")
public class CommentMessage {
    @Id
    @Column(name = "`comment_id`")
    private Integer commentId;

    @Column(name = "`comment_content`")
    private String commentContent;

    @Column(name = "`article_id`")
    private Integer articleId;

    @Column(name = "`user_id`")
    private Integer userId;

    @Column(name = "`create_time`")
    private Date createTime;

    private UserMessage userMessage;

    private List<ReplayMessage> replayMessageList;


}